package br.com.model;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import org.apache.catalina.startup.SetContextPropertiesRule;

public abstract class Conexao {

	
	protected Connection getConexao() throws SQLException {
		
		try {
			Class.forName("com.mysql.jdbc.Driver");//<-------esta linha aqui 'e pro tomcat encontrar os drivers
			return DriverManager.getConnection(
					"jdbc:mysql://dbmy0058.whservidor.com/lavanderia176", "lavanderia176", "Lavanderia09");
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return null;
		}
		
	}
}
